/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package deatax.game;

import java.util.Comparator;

/**
 *
 * @author Pieman
 */
public class GameObjectSorter implements Comparator<GameObject> {

    @Override
    public int compare(GameObject o1, GameObject o2) {
        return o2.getWeight() - o1.getWeight();
    }
}
